<template>
  <div>
    <a-popconfirm
      title="Are you sure delete this task?"
      ok-text="Yes"
      cancel-text="No"
      @confirm="confirm"
      @cancel="cancel"
    >
      <a  href="#">删除</a>
    </a-popconfirm>
  </div>
</template>

<script>
import { defineComponent } from 'vue';
import { message } from 'ant-design-vue';
export default defineComponent({
  setup() {
    const confirm = e => {
      message.warning("访客无权进行该操作")
    };

    const cancel = e => {
      console.log(e);
      message.error('Click on No');
    };

    return {
      confirm,
      cancel,
    };
  },

});
</script>
<style scoped>

</style>